package com.jshx.sz.gdjt.constant;

import java.io.File;

import android.graphics.drawable.Drawable;
import android.os.Environment;

/**
 * 常量类
 * @author caxiang
 * @time 2013-08-20
 */
public class ApplicationGlobal 
{
	//自动更新进度
    public static final int update_progress = 1;
    
    //自动更新取消
    public static final int down_cancle = 2;
    
    //自动更新错误
    public static final int down_error = 3;
    
    //自动更新完成
    public static final int down_reboot = 4;
    
  	//获取数据成功
  	public static final int data_obtained = 5;
  	
  	//获取数据失败
  	public static final int data_missed = 6;
  	
    //登陆成功
  	public static final int loginsucc = 7;
  	
  	//登陆失败
  	public static final int loginfail = 8;
  	
  	
  	
  	//列表页没页加载条数
  	public static int PAGE_SIZE = 10;
  	
    //应用包名
  	public static String APPPACKAGENAME = "com.jshx.sz.gdjt";
    
	//获取数据成功返回码
	public static final String PROTOCOL_SUCCESS = "0";
	
	//List数据标识
	public static final String LIST_DATA_FLAG = "succ_data";
	
	//list数据某一项标识
	public static final String LIST_ITEM_DATA_FLAG = "item_data";
	
	
	public static String serviceIP = "192.168.1.100";
	public static String servicePort = "8083";
	public static String uploadImagePath = "/gdjt/UploadPhotoServlet";
	//服务器地址
	//public static String serviceUrl ="http://180.96.63.242:80/njkfc/terminalupload";
	public static String serviceUrl ="http://"+serviceIP+":"+servicePort+"/gdjt/jsp/http/json_command.action?";
	//上传图片地址
	public static String uploadImageUrl = "http://" + serviceIP + ":" + servicePort + uploadImagePath;
	
	//应用程序名称
	public static String applacation_name ="SZGDJT";
	
	//日志包
	public static String LogFlag ="userLog";
	
	//sd卡路径
	public static String SdCardPath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separatorChar;
	
	//程序文件主目录
	public static String basePathFolder = SdCardPath + applacation_name;
	
	//程序图片目录名称
	public static String imageBaseFoldName = "imgs";
	
	//程序图片目录
	public static String imageBaseFold = basePathFolder + File.separatorChar + imageBaseFoldName + File.separatorChar;
	
    //临时文件路径
    public static final String tempPath = basePathFolder + File.separatorChar + "temp" + File.separatorChar;
	  
	//本地存储对象sharepreferance标识
    public static final String SPDATANAME = "userdata";

    //用户名标识
    public static final String USERNAME = "username";
    
    //密码标识
    public static final String PASSWORD = "password";
    
    //
    public static Drawable globalDrawable = null;
    
    
    public static String userId="";

}